import Mock from 'mockjs'
const Random = Mock.Random

Mock.mock('http://123.207.32.32:8000/home/data?type=pop&page=1',{
    data: {
        "list|30": [{
            img: Mock.Random.image('320x416'),
            title: Mock.Random.ctitle(),
            price: '@INT(1,100)',
            collection: '@INT(1,100)',
            id: '@INT(1,100)'
        }]
    },
    returnCode: "SUCCESS",
    success: true
});

Mock.mock('http://123.207.32.32:8000/home/data?type=pop&page=2',{
    data: {
        "list|30": [{
            img: Mock.Random.image('320x416'),
            title: Mock.Random.ctitle(),
            price: '@INT(1,100)',
            collection: '@INT(1,100)',
            id: '@INT(1,100)'
        }]
    },
    returnCode: "SUCCESS",
    success: true
});

Mock.mock('http://123.207.32.32:8000/home/data?type=pop&page=3',{
    data: {
        "list|30": [{
            img: Mock.Random.image('320x416'),
            title: Mock.Random.ctitle(),
            price: '@INT(1,100)',
            collection: '@INT(1,100)',
            id: '@INT(1,100)'
        }]
    },
    returnCode: "SUCCESS",
    success: true
});

Mock.mock('http://123.207.32.32:8000/home/data?type=pop&page=4',{
    data: {
        "list|30": [{
            img: Mock.Random.image('320x416'),
            title: Mock.Random.ctitle(),
            price: '@INT(1,100)',
            collection: '@INT(1,100)',
            id: '@INT(1,100)'
        }]
    },
    returnCode: "SUCCESS",
    success: true
});

Mock.mock('http://123.207.32.32:8000/home/data?type=new&page=1',{
    data: {
        "list|30": [{
            img: Mock.Random.image('320x416'),
            title: Mock.Random.ctitle(),
            price: '@INT(1,100)',
            collection: '@INT(1,100)',
            id: '@INT(1,100)'
        }]
    },
    returnCode: "SUCCESS",
    success: true
});

Mock.mock('http://123.207.32.32:8000/home/data?type=new&page=2',{
    data: {
        "list|30": [{
            img: Mock.Random.image('320x416'),
            title: Mock.Random.ctitle(),
            price: '@INT(1,100)',
            collection: '@INT(1,100)',
            id: '@INT(1,100)'
        }]
    },
    returnCode: "SUCCESS",
    success: true
});

Mock.mock('http://123.207.32.32:8000/home/data?type=new&page=3',{
    data: {
        "list|30": [{
            img: Mock.Random.image('320x416'),
            title: Mock.Random.ctitle(),
            price: '@INT(1,100)',
            collection: '@INT(1,100)',
            id: '@INT(1,100)'
        }]
    },
    returnCode: "SUCCESS",
    success: true
});

Mock.mock('http://123.207.32.32:8000/home/data?type=new&page=4',{
    data: {
        "list|30": [{
            img: Mock.Random.image('320x416'),
            title: Mock.Random.ctitle(),
            price: '@INT(1,100)',
            collection: '@INT(1,100)',
            id: '@INT(1,100)'
        }]
    },
    returnCode: "SUCCESS",
    success: true
});

Mock.mock('http://123.207.32.32:8000/home/data?type=sell&page=1',{
    data: {
        "list|30": [{
            img: Mock.Random.image('320x416'),
            title: Mock.Random.ctitle(),
            price: '@INT(1,100)',
            collection: '@INT(1,100)',
            id: '@INT(1,100)'
        }]
    },
    returnCode: "SUCCESS",
    success: true
});

Mock.mock('http://123.207.32.32:8000/home/data?type=sell&page=2',{
    data: {
        "list|30": [{
            img: Mock.Random.image('320x416'),
            title: Mock.Random.ctitle(),
            price: '@INT(1,100)',
            collection: '@INT(1,100)',
            id: '@INT(1,100)'
        }]
    },
    returnCode: "SUCCESS",
    success: true
});

Mock.mock('http://123.207.32.32:8000/home/data?type=sell&page=3',{
    data: {
        "list|30": [{
            img: Mock.Random.image('320x416'),
            title: Mock.Random.ctitle(),
            price: '@INT(1,100)',
            collection: '@INT(1,100)',
            id: '@INT(1,100)'
        }]
    },
    returnCode: "SUCCESS",
    success: true
});

Mock.mock('http://123.207.32.32:8000/home/data?type=sell&page=4',{
    data: {
        "list|30": [{
            img: Mock.Random.image('320x416'),
            title: Mock.Random.ctitle(),
            price: '@INT(1,100)',
            collection: '@INT(1,100)',
            id: '@INT(1,100)'
        }]
    },
    returnCode: "SUCCESS",
    success: true
});

Mock.mock('http://123.207.32.32:8000/detail?id=33',{
    result: {
        "itemInfo": {
            "topImage|6": [Mock.Random.image('320x416', '#50B347', '#FFF', 'Mock.js')],
        }
    },
    returnCode: "SUCCESS",
    success: true
});